home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_casm / jlvesa11.zip / JLVESA03.ASM < prev    next >
Assembly Source File  |  1996-01-03  |  929b  |  46 lines

  1. ; This routine is part of the VESA SVGA -library
  2. ;
  3. ; Copyright 1994 Johannes Lehtinen
  4. ; All rights reserved
  5.  
  6. model large,c
  7. p386
  8.  
  9. segment jlvesa03_TEXT USE16 'CODE'
  10. assume cs:jlvesa03_TEXT
  11.  
  12. ; JVFlag JVScreen_SetVisual(JVUWord pixel, JVUWord line)
  13. ;
  14. ; Set start of the visual display. Pixel is the first displayed pixel and
  15. ; line is the first displayed line. Returns 0 if succesfull, 1 if not.
  16.  
  17. proc JVScreen_SetVisual far
  18.    public JVScreen_SetVisual
  19.  
  20.    push  bp
  21.    mov   bp,sp
  22.  
  23.    mov   ax,4f07H             ; Set display start -function
  24.    mov   bx,0
  25.    mov   cx,[ss:bp+6]         ; CX = First pixel
  26.    mov   dx,[ss:bp+8]         ; DX = First line
  27.    int   10H                  ; Call VESA BIOS
  28.  
  29.    cmp   ax,4fh               ; Check if succesfull
  30.    jne   short fail
  31.  
  32.    mov   al,0
  33.    pop   bp
  34.    retf
  35.  
  36. fail:
  37.    mov   al,1
  38.    pop   bp
  39.    retf
  40.  
  41. endp JVScreen_SetVisual
  42.  
  43. ends
  44.  
  45. end
  46.